<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html">
<h:head>
	<title>Who is millionaire</title>
</h:head>
<h:body>
	<h:form>
		<h:commandButton></h:commandButton>
		<h:commandButton value="50/50" action="#{buttonBean.fifty_fifty}"
			disabled="#{buttonBean.button_fifty}"></h:commandButton>
		<h:commandButton value="Auditory help"
			actionListener="#{buttonBean.auditoryHelp}"
			disabled="#{buttonBean.button_auditory}"></h:commandButton>
		<h:commandButton value="Call Friend"
			actionListener="#{buttonBean.callTheFriend}"
			disabled="#{buttonBean.button_call}"></h:commandButton>
	</h:form>
	<h:form>
		<h:outputText value="#{questionBean.question}"></h:outputText>
	</h:form>
	<h:form>
		<h:commandButton value="#{questionBean.variant_a}"
			disabled="#{buttonBean.button_a}" actionListener="#{buttonBean.check_A}"></h:commandButton>
		<h:commandButton value="#{questionBean.variant_b}"
			disabled="#{buttonBean.button_b}" actionListener="#{buttonBean.check_B}"></h:commandButton>
	</h:form>
	<h:form>
		<h:commandButton value="#{questionBean.variant_c}"
			disabled="#{buttonBean.button_c}" actionListener="#{buttonBean.check_C}"></h:commandButton>
		<h:commandButton value="#{questionBean.variant_d}"
			disabled="#{buttonBean.button_d}" actionListener="#{buttonBean.check_D}"></h:commandButton>
	</h:form>
	<h:outputScript rendered="#{buttonBean.showAlert}">
		   alert("A:"+"50%"+" B "+"25%"+" C "+" 0% "+ " D "+" 25%" );
		</h:outputScript>
	<h:outputScript rendered="#{buttonBean.callFriend}">
		   alert("He says that go and learn more." );
		</h:outputScript>
</h:body>
</html>